package com.le.tester.javaThink.fifth.chapter12_Collections;

import java.util.ArrayList;

/**
 * createTime：2021/8/24 15:47
 * description：ApplesAndOrangesWithGenerics
 */
public class ApplesAndOrangesWithGenerics {
    public static void main(String[] args) {
        ArrayList<Apple> apples = new ArrayList<>();
        for (int i = 0; i < 3; i++) {
            apples.add(new Apple());
        }
        for (Apple aItem : apples) {
            System.out.println(aItem.id());
        }
    }
}
